<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- membersheet.qdoc -->
  <title>QDesignerMemberSheetExtension 类 | Qt设计师手册</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td ><a href="../qtdoc/index.html">Qt 5.12</a></td><td ><a href="qtdesigner-manual.html">Qt设计师手册</a></td><td ><a href="qtdesigner-module.html">C++ 类</a></td><td >QDesignerMemberSheetExtension</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtdesigner-manual.html">Qt 5.12.3 参考指南</a></td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">目录</a></h3>
<ul>
<li class="level1"><a href="#public-functions">公用函数</a></li>
<li class="level1"><a href="#details">详细信息</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QDesignerMemberSheetExtension 类</h1>
<!-- $$$QDesignerMemberSheetExtension-brief -->
<p><font style="vertical-align: inherit;">所述</font><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/qdesignermembersheetextension.html"><font style="vertical-align: inherit;">QDesignerMemberSheetExtension</font></a><font style="vertical-align: inherit;">类可以操纵配置使用Qt 设计师的模式用于编辑信号和槽连接时，其上显示窗口组件的成员函数。</font><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/qdesignermembersheetextension.html#details"><font style="vertical-align: inherit;">更多...</font></a></p>
<!-- @@@QDesignerMemberSheetExtension -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign">头文件：</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QDesignerMemberSheetExtension&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += designer</td></tr></table></div><ul>
<li><a href="qdesignermembersheetextension-members.html">所有成员的列表，包括继承成员。</a></li>
</ul>
<a name="public-functions"></a>
<h2 id="public-functions">公用函数</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qdesignermembersheetextension.html#dtor.QDesignerMemberSheetExtension">~QDesignerMemberSheetExtension</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="qdesignermembersheetextension.html#count">count</a></b>() const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QString </td><td class="memItemRight bottomAlign"><b><a href="qdesignermembersheetextension.html#declaredInClass">declaredInClass</a></b>(int <i>index</i>) const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="qdesignermembersheetextension.html#indexOf">indexOf</a></b>(const QString &amp;<i>name</i>) const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qdesignermembersheetextension.html#inheritedFromWidget">inheritedFromWidget</a></b>(int <i>index</i>) const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qdesignermembersheetextension.html#isSignal">isSignal</a></b>(int <i>index</i>) const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qdesignermembersheetextension.html#isSlot">isSlot</a></b>(int <i>index</i>) const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qdesignermembersheetextension.html#isVisible">isVisible</a></b>(int <i>index</i>) const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QString </td><td class="memItemRight bottomAlign"><b><a href="qdesignermembersheetextension.html#memberGroup">memberGroup</a></b>(int <i>index</i>) const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QString </td><td class="memItemRight bottomAlign"><b><a href="qdesignermembersheetextension.html#memberName">memberName</a></b>(int <i>index</i>) const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QList&lt;QByteArray&gt; </td><td class="memItemRight bottomAlign"><b><a href="qdesignermembersheetextension.html#parameterNames">parameterNames</a></b>(int <i>index</i>) const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QList&lt;QByteArray&gt; </td><td class="memItemRight bottomAlign"><b><a href="qdesignermembersheetextension.html#parameterTypes">parameterTypes</a></b>(int <i>index</i>) const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qdesignermembersheetextension.html#setMemberGroup">setMemberGroup</a></b>(int <i>index</i>, const QString &amp;<i>group</i>) = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qdesignermembersheetextension.html#setVisible">setVisible</a></b>(int <i>index</i>, bool <i>visible</i>) = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QString </td><td class="memItemRight bottomAlign"><b><a href="qdesignermembersheetextension.html#signature">signature</a></b>(int <i>index</i>) const = 0</td></tr>
</table></div>
<a name="details"></a>
<!-- $$$QDesignerMemberSheetExtension-description -->
<div class="descr">
<h2 id="details">详细信息</h2>
<p><font style="vertical-align: inherit;">所述</font><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/qdesignermembersheetextension.html"><font style="vertical-align: inherit;">QDesignerMemberSheetExtension</font></a><font style="vertical-align: inherit;">类可以操纵配置使用Qt 设计师的模式用于编辑信号和槽连接时，其上显示窗口组件的成员函数。</font></p>
<p><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/qdesignermembersheetextension.html"><font style="vertical-align: inherit;">QDesignerMemberSheetExtension</font></a><font style="vertical-align: inherit;">是一组函数，通常用于查询组件的成员函数，以及在</font><i><font style="vertical-align: inherit;">Qt 设计师</font></i><font style="vertical-align: inherit;">的信号和槽编辑模式下操作成员函数的外观。例如：</font></p>
<pre class="cpp">

  <span class="type"><a href="qdesignermembersheetextension.html">QDesignerMemberSheetExtension</a></span> <span class="operator">*</span>memberSheet  <span class="operator">=</span> <span class="number">0</span>;
  <span class="type"><a href="qextensionmanager.html">QExtensionManager</a></span> manager <span class="operator">=</span> formEditor<span class="operator">-</span><span class="operator">&gt;</span>extensionManager();

  memberSheet <span class="operator">=</span> qt_extension<span class="operator">&lt;</span><span class="type"><a href="qdesignermembersheetextension.html">QDesignerMemberSheetExtension</a></span><span class="operator">*</span><span class="operator">&gt;</span>(manager<span class="operator">,</span> widget);
  <span class="type">int</span> index <span class="operator">=</span> memberSheet<span class="operator">-</span><span class="operator">&gt;</span>indexOf(setEchoMode);
  memberSheet<span class="operator">-</span><span class="operator">&gt;</span>setVisible(index<span class="operator">,</span> <span class="keyword">false</span>);

  <span class="keyword">delete</span> memberSheet;

</pre>
<p><font style="vertical-align: inherit;">在实现自定义组件插件时，<a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/qdesignercustomwidgetinterface.html#initialize">QDesignerCustomWidgetInterface::initialize</a> () 函数的参数提供指向</font><i><font style="vertical-align: inherit;">Qt 设计师</font></i><font style="vertical-align: inherit;">当前</font><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/qdesignerformeditorinterface.html"><font style="vertical-align: inherit;">QDesignerFormEditorInterface</font></a><font style="vertical-align: inherit;">对象（</font><code>formEditor</code><font style="vertical-align: inherit;">在上面的示例中）的</font><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/qdesignercustomwidgetinterface.html#initialize"><font style="vertical-align: inherit;">指针</font></a><font style="vertical-align: inherit;">。</font></p>
<p><font style="vertical-align: inherit;">可以通过使用 qt_extension() 函数查询</font><i><font style="vertical-align: inherit;">Qt 设计师</font></i><font style="vertical-align: inherit;">的扩展管理器来检索成员表（和任何其他扩展）。当你想释放扩展时，你只需要删除指针。</font></p>
<p><font style="vertical-align: inherit;">所有组件都有一个默认成员表，用于</font><i><font style="vertical-align: inherit;">Qt 设计师</font></i><font style="vertical-align: inherit;">的信号和槽编辑模式以及组件的成员函数。但是</font><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/qdesignermembersheetextension.html"><font style="vertical-align: inherit;">QDesignerMemberSheetExtension</font></a><font style="vertical-align: inherit;">还提供了一个用于创建自定义成员表扩展的接口。</font></p>
<p><b><font style="vertical-align: inherit;">警告：</font></b> <i><font style="vertical-align: inherit;">Qt 设计师</font></i><font style="vertical-align: inherit;">使用</font><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/qdesignermembersheetextension.html"><font style="vertical-align: inherit;">QDesignerMemberSheetExtension</font></a><font style="vertical-align: inherit;">来简化信号和槽编辑模式。每当请求两个组件之间的连接时，</font><i><font style="vertical-align: inherit;">Qt 设计师</font></i><font style="vertical-align: inherit;">将查询组件的成员表扩展名。如果组件具有已实现的成员表扩展，则此扩展将覆盖默认成员表。</font></p>
<p><font style="vertical-align: inherit;">要创建成员表扩展，您的扩展类必须从</font><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtcore/qobject.html"><font style="vertical-align: inherit;">QObject</font></a><font style="vertical-align: inherit;">和</font><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/qdesignermembersheetextension.html"><font style="vertical-align: inherit;">QDesignerMemberSheetExtension</font></a><font style="vertical-align: inherit;">继承。然后，由于我们正在实现一个接口，我们必须确保使用</font><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtcore/qobject.html#Q_INTERFACES"><font style="vertical-align: inherit;">Q_INTERFACES</font></a><font style="vertical-align: inherit;"> () 宏让元对象系统知道它：</font></p>
<pre class="cpp">

  <span class="keyword">class</span> MyMemberSheetExtension : <span class="keyword">public</span> <span class="type"><a href="../qtcore/qobject.html">QObject</a></span><span class="operator">,</span>
          <span class="keyword">public</span> <span class="type"><a href="qdesignermembersheetextension.html">QDesignerMemberSheetExtension</a></span>
  {
      Q_OBJECT
      Q_INTERFACES(<span class="type"><a href="qdesignermembersheetextension.html">QDesignerMemberSheetExtension</a></span>)

  <span class="keyword">public</span>:
      <span class="operator">.</span><span class="operator">.</span><span class="operator">.</span>
  }

</pre>
<p><font style="vertical-align: inherit;">这使得</font><i><font style="vertical-align: inherit;">Qt 设计师</font></i><font style="vertical-align: inherit;">能够使用</font><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtcore/qobject.html#qobject_cast"><font style="vertical-align: inherit;">qobject_cast</font></a><font style="vertical-align: inherit;"> () 来查询支持的接口，只使用</font><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtcore/qobject.html"><font style="vertical-align: inherit;">QObject</font></a><font style="vertical-align: inherit;">指针。</font></p>
<p><font style="vertical-align: inherit;">在</font><i><font style="vertical-align: inherit;">Qt 设计师 中</font></i><font style="vertical-align: inherit;">，除非需要扩展，否则不会创建扩展。因此，在实现成员表扩展时，您还必须创建一个</font><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/qextensionfactory.html"><font style="vertical-align: inherit;">QExtensionFactory</font></a><font style="vertical-align: inherit;">，即能够创建扩展实例的类，并使用</font><i><font style="vertical-align: inherit;">Qt 设计师</font></i><font style="vertical-align: inherit;">的</font><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/qextensionmanager.html"><font style="vertical-align: inherit;">扩展管理器</font></a><font style="vertical-align: inherit;">注册它。</font></p>
<p><font style="vertical-align: inherit;">当需要组件的成员表扩展时，</font><i><font style="vertical-align: inherit;">Qt 设计师</font></i><font style="vertical-align: inherit;">的</font><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/qextensionmanager.html"><font style="vertical-align: inherit;">扩展管理器</font></a><font style="vertical-align: inherit;">将运行其所有注册工厂，为每个调用</font><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/qextensionfactory.html#createExtension"><font style="vertical-align: inherit;">QExtensionFactory::createExtension</font></a><font style="vertical-align: inherit;"> () 直到找到第一个能够为该组件创建成员表扩展的工厂. 然后这个工厂将创建扩展的一个实例。如果没有找到这样的工厂，</font><i><font style="vertical-align: inherit;">Qt 设计师</font></i><font style="vertical-align: inherit;">将使用默认的成员表。</font></p>
<p><i><font style="vertical-align: inherit;">Qt 设计师 中</font></i><font style="vertical-align: inherit;">有四种可用的扩展类型：</font><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/qdesignercontainerextension.html"><font style="vertical-align: inherit;">QDesignerContainerExtension</font></a><font style="vertical-align: inherit;">、</font><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/qdesignermembersheetextension.html"><font style="vertical-align: inherit;">QDesignerMemberSheetExtension</font></a><font style="vertical-align: inherit;">、</font><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/qdesignerpropertysheetextension.html"><font style="vertical-align: inherit;">QDesignerPropertySheetExtension</font></a><font style="vertical-align: inherit;">和</font><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/qdesignertaskmenuextension.html"><font style="vertical-align: inherit;">QDesignerTaskMenuExtension</font></a><font style="vertical-align: inherit;">。无论请求的扩展与多页容器、成员表、属性表还是任务菜单相关联，</font><i><font style="vertical-align: inherit;">Qt 设计师</font></i><font style="vertical-align: inherit;">的行为都是相同的。</font></p>
<p><font style="vertical-align: inherit;">所述</font><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/qextensionfactory.html"><font style="vertical-align: inherit;">QExtensionFactory</font></a><font style="vertical-align: inherit;">类提供的标准扩展工厂，并且还可以用作用于定义扩展工厂的接口。您可以创建一个新的</font><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/qextensionfactory.html"><font style="vertical-align: inherit;">QExtensionFactory</font></a><font style="vertical-align: inherit;">并重新实现</font><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/qextensionfactory.html#createExtension"><font style="vertical-align: inherit;">QExtensionFactory::createExtension</font></a><font style="vertical-align: inherit;"> () 函数。例如：</font></p>
<pre class="cpp">

  <span class="type"><a href="../qtcore/qobject.html">QObject</a></span> <span class="operator">*</span>ANewExtensionFactory<span class="operator">::</span>createExtension(<span class="type"><a href="../qtcore/qobject.html">QObject</a></span> <span class="operator">*</span>object<span class="operator">,</span>
          <span class="keyword">const</span> <span class="type"><a href="../qtcore/qstring.html">QString</a></span> <span class="operator">&amp;</span>iid<span class="operator">,</span> <span class="type"><a href="../qtcore/qobject.html">QObject</a></span> <span class="operator">*</span>parent) <span class="keyword">const</span>
  {
      <span class="keyword">if</span> (iid <span class="operator">!</span><span class="operator">=</span> Q_TYPEID(<span class="type"><a href="qdesignermembersheetextension.html">QDesignerMemberSheetExtension</a></span>))
          <span class="keyword">return</span> <span class="number">0</span>;

      <span class="keyword">if</span> (MyCustomWidget <span class="operator">*</span>widget <span class="operator">=</span> qobject_cast<span class="operator">&lt;</span>MyCustomWidget<span class="operator">*</span><span class="operator">&gt;</span>
             (object))
          <span class="keyword">return</span> <span class="keyword">new</span> MyMemberSheetExtension(widget<span class="operator">,</span> parent);

      <span class="keyword">return</span> <span class="number">0</span>;
  }

</pre>
<p><font style="vertical-align: inherit;">或者您可以使用现有工厂，扩展</font><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/qextensionfactory.html#createExtension"><font style="vertical-align: inherit;">QExtensionFactory::createExtension</font></a><font style="vertical-align: inherit;"> () 函数，使工厂也能够创建成员表扩展。例如：</font></p>
<pre class="cpp">

  <span class="type"><a href="../qtcore/qobject.html">QObject</a></span> <span class="operator">*</span>AGeneralExtensionFactory<span class="operator">::</span>createExtension(<span class="type"><a href="../qtcore/qobject.html">QObject</a></span> <span class="operator">*</span>object<span class="operator">,</span>
          <span class="keyword">const</span> <span class="type"><a href="../qtcore/qstring.html">QString</a></span> <span class="operator">&amp;</span>iid<span class="operator">,</span> <span class="type"><a href="../qtcore/qobject.html">QObject</a></span> <span class="operator">*</span>parent) <span class="keyword">const</span>
  {
      MyCustomWidget <span class="operator">*</span>widget <span class="operator">=</span> qobject_cast<span class="operator">&lt;</span>MyCustomWidget<span class="operator">*</span><span class="operator">&gt;</span>(object);

      <span class="keyword">if</span> (widget <span class="operator">&amp;</span><span class="operator">&amp;</span> (iid <span class="operator">=</span><span class="operator">=</span> Q_TYPEID(<span class="type"><a href="qdesignertaskmenuextension.html">QDesignerTaskMenuExtension</a></span>))) {
          <span class="keyword">return</span> <span class="keyword">new</span> MyTaskMenuExtension(widget<span class="operator">,</span> parent);

      } <span class="keyword">else</span> <span class="keyword">if</span> (widget <span class="operator">&amp;</span><span class="operator">&amp;</span> (iid <span class="operator">=</span><span class="operator">=</span> Q_TYPEID(<span class="type"><a href="qdesignermembersheetextension.html">QDesignerMemberSheetExtension</a></span>))) {
          <span class="keyword">return</span> <span class="keyword">new</span> MyMemberSheetExtension(widget<span class="operator">,</span> parent);

      } <span class="keyword">else</span> {
          <span class="keyword">return</span> <span class="number">0</span>;
      }
  }

</pre>
<p><font style="vertical-align: inherit;">有关使用扩展类的完整示例，请参阅</font><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/qtdesigner-taskmenuextension-example.html"><font style="vertical-align: inherit;">任务菜单扩展示例</font></a><font style="vertical-align: inherit;">。该示例展示了如何为 Qt 设计师 创建自定义组件插件，以及如何使用</font><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/qdesignertaskmenuextension.html"><font style="vertical-align: inherit;">QDesignerTaskMenuExtension</font></a><font style="vertical-align: inherit;">类将自定义项添加到</font><i><font style="vertical-align: inherit;">Qt 设计师</font></i><font style="vertical-align: inherit;">的任务菜单。</font></p>
</div>
<p><b><font style="vertical-align: inherit;">请参考</font></b><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/qextensionfactory.html"><font style="vertical-align: inherit;">QExtensionFactory</font></a><font style="vertical-align: inherit;">、</font><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/qextensionmanager.html"><font style="vertical-align: inherit;">QExtensionManager</font></a><font style="vertical-align: inherit;">和</font><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/designer-creating-custom-widgets-extensions.html"><font style="vertical-align: inherit;">创建自定义组件扩展</font></a><font style="vertical-align: inherit;">。</font></p>
<!-- @@@QDesignerMemberSheetExtension -->
<div class="func">
<h2>成员函数文档</h2>
<!-- $$$~QDesignerMemberSheetExtension[overload1]$$$~QDesignerMemberSheetExtension -->
<h3 class="fn" id="dtor.QDesignerMemberSheetExtension"><a name="dtor.QDesignerMemberSheetExtension"></a><code>[virtual] </code>QDesignerMemberSheetExtension::<span class="name">~QDesignerMemberSheetExtension</span>()</h3>
<p><font style="vertical-align: inherit;">销毁成员表扩展。</font></p>
<!-- @@@~QDesignerMemberSheetExtension -->
<!-- $$$count[overload1]$$$count -->
<h3 class="fn" id="count"><a name="count"></a><code>[pure virtual] </code><span class="type">int</span> QDesignerMemberSheetExtension::<span class="name">count</span>() const</h3>
<p><font style="vertical-align: inherit;">返回扩展的成员函数数。</font></p>
<!-- @@@count -->
<!-- $$$declaredInClass[overload1]$$$declaredInClassint -->
<h3 class="fn" id="declaredInClass"><a name="declaredInClass"></a><code>[pure virtual] </code><span class="type"><a href="../qtcore/qstring.html">QString</a></span> QDesignerMemberSheetExtension::<span class="name">declaredInClass</span>(<span class="type">int</span> <i>index</i>) const</h3>
<p><font style="vertical-align: inherit;">返回声明具有给定</font><i><font style="vertical-align: inherit;"><span lang="zh-cn">index(</span>索引<span lang="zh-cn">)</span></font></i><font style="vertical-align: inherit;">的成员函数的类的名称。</font></p>
<p><b>请参考 </b><a href="qdesignermembersheetextension.html#indexOf">indexOf</a>()<span lang="zh-cn">。</span></p>
<!-- @@@declaredInClass -->
<!-- $$$indexOf[overload1]$$$indexOfconstQString& -->
<h3 class="fn" id="indexOf"><a name="indexOf"></a><code>[pure virtual] </code><span class="type">int</span> QDesignerMemberSheetExtension::<span class="name">indexOf</span>(const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &amp;<i>name</i>) const</h3>
<p><font style="vertical-align: inherit;">返回由给定</font><i><font style="vertical-align: inherit;">name</font></i><font style="vertical-align: inherit;">指定的成员函数的索引。</font></p>
<p><b>请参考 </b><a href="qdesignermembersheetextension.html#memberName">memberName</a>()<span lang="zh-cn">。</span></p>
<!-- @@@indexOf -->
<!-- $$$inheritedFromWidget[overload1]$$$inheritedFromWidgetint -->
<h3 class="fn" id="inheritedFromWidget"><a name="inheritedFromWidget"></a><code>[pure virtual] </code><span class="type">bool</span> QDesignerMemberSheetExtension::<span class="name">inheritedFromWidget</span>(<span class="type">int</span> <i>index</i>) const</h3>
<p><font style="vertical-align: inherit;">如果具有给定</font><i><font style="vertical-align: inherit;"><span lang="zh-cn">index(</span>索引<span lang="zh-cn">)</span></font></i><font style="vertical-align: inherit;">的成员函数是从</font><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtwidgets/qwidget.html"><font style="vertical-align: inherit;">QWidget</font></a><font style="vertical-align: inherit;">继承的，则返回 true ，否则返回 false。</font></p>
<p><b>请参考 </b><a href="qdesignermembersheetextension.html#indexOf">indexOf</a>().</p>
<!-- @@@inheritedFromWidget -->
<!-- $$$isSignal[overload1]$$$isSignalint -->
<h3 class="fn" id="isSignal"><a name="isSignal"></a><code>[pure virtual] </code><span class="type">bool</span> QDesignerMemberSheetExtension::<span class="name">isSignal</span>(<span class="type">int</span> <i>index</i>) const</h3>
<p><font style="vertical-align: inherit;">如果具有给定</font><i><font style="vertical-align: inherit;">index<span lang="zh-cn">（</span>索引<span lang="zh-cn">）</span></font></i><font style="vertical-align: inherit;">的成员函数是信号，则返回 true ，否则返回 false。</font></p>
<p><b>请参考 </b><a href="qdesignermembersheetextension.html#indexOf">indexOf</a>()<span lang="zh-cn">。</span></p>
<!-- @@@isSignal -->
<!-- $$$isSlot[overload1]$$$isSlotint -->
<h3 class="fn" id="isSlot"><a name="isSlot"></a><code>[pure virtual] </code><span class="type">bool</span> QDesignerMemberSheetExtension::<span class="name">isSlot</span>(<span class="type">int</span> <i>index</i>) const</h3>
<p><font style="vertical-align: inherit;">如果具有给定</font><i><font style="vertical-align: inherit;">索引</font></i><font style="vertical-align: inherit;">的成员函数是槽，则返回 true ，否则返回 false。</font></p>
<p><b>请参考 </b><a href="qdesignermembersheetextension.html#indexOf">indexOf</a>()<span lang="zh-cn">。</span></p>
<!-- @@@isSlot -->
<!-- $$$isVisible[overload1]$$$isVisibleint -->
<h3 class="fn" id="isVisible"><a name="isVisible"></a><code>[pure virtual] </code><span class="type">bool</span> QDesignerMemberSheetExtension::<span class="name">isVisible</span>(<span class="type">int</span> <i>index</i>) const</h3>
<p><font style="vertical-align: inherit;">如果具有给定</font><i><font style="vertical-align: inherit;">索引</font></i><font style="vertical-align: inherit;">的成员函数在</font><i><font style="vertical-align: inherit;">Qt 设计师</font></i><font style="vertical-align: inherit;">的信号和槽编辑器中可见，则返回 true ，否则返回 false。</font></p>
<p><b>请参考 </b><a href="qdesignermembersheetextension.html#indexOf">indexOf</a>() and <a href="qdesignermembersheetextension.html#setVisible">setVisible</a>().</p>
<!-- @@@isVisible -->
<!-- $$$memberGroup[overload1]$$$memberGroupint -->
<h3 class="fn" id="memberGroup"><a name="memberGroup"></a><code>[pure virtual] </code><span class="type"><a href="../qtcore/qstring.html">QString</a></span> QDesignerMemberSheetExtension::<span class="name">memberGroup</span>(<span class="type">int</span> <i>index</i>) const</h3>
<p><font style="vertical-align: inherit;">返回为具有给定</font><i><font style="vertical-align: inherit;">index<span lang="zh-cn">（</span>索引<span lang="zh-cn">）</span></font></i><font style="vertical-align: inherit;">的函数指定的成员组的名称。</font></p>
<p><b><font style="vertical-align: inherit;">请参考</font></b><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/qdesignermembersheetextension.html#indexOf"><font style="vertical-align: inherit;">indexOf</font></a><font style="vertical-align: inherit;"> ()和</font><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/qdesignermembersheetextension.html#setMemberGroup"><font style="vertical-align: inherit;">setMemberGroup</font></a><font style="vertical-align: inherit;"> ()。</font></p>
<!-- @@@memberGroup -->
<!-- $$$memberName[overload1]$$$memberNameint -->
<h3 class="fn" id="memberName"><a name="memberName"></a><code>[pure virtual] </code><span class="type"><a href="../qtcore/qstring.html">QString</a></span> QDesignerMemberSheetExtension::<span class="name">memberName</span>(<span class="type">int</span> <i>index</i>) const</h3>
<p><font style="vertical-align: inherit;">返回具有给定<i>index<span lang="zh-cn">（</span></i></font><i><font style="vertical-align: inherit;">索引<span lang="zh-cn">）</span></font></i><font style="vertical-align: inherit;">的成员函数的名称。</font></p>
<p><b>请参考 </b><a href="qdesignermembersheetextension.html#indexOf">indexOf</a>().</p>
<!-- @@@memberName -->
<!-- $$$parameterNames[overload1]$$$parameterNamesint -->
<h3 class="fn" id="parameterNames"><a name="parameterNames"></a><code>[pure virtual] </code><span class="type"><a href="../qtcore/qlist.html">QList</a></span>&lt;<span class="type"><a href="../qtcore/qbytearray.html">QByteArray</a></span>&gt; QDesignerMemberSheetExtension::<span class="name">parameterNames</span>(<span class="type">int</span> <i>index</i>) const</h3>
<p><font style="vertical-align: inherit;">返回具有给定</font><i><font style="vertical-align: inherit;">index<span lang="zh-cn">（</span>索引<span lang="zh-cn">）</span></font></i><font style="vertical-align: inherit;">的成员函数的参数名称，作为</font><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtcore/qbytearray.html"><font style="vertical-align: inherit;">QByteArray</font></a><font style="vertical-align: inherit;">列表。</font></p>
<p><b><font style="vertical-align: inherit;">请参考</font></b><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/qdesignermembersheetextension.html#indexOf"><font style="vertical-align: inherit;">indexOf</font></a><font style="vertical-align: inherit;"> ()和</font><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/qdesignermembersheetextension.html#parameterTypes"><font style="vertical-align: inherit;">parameterTypes</font></a><font style="vertical-align: inherit;"> ()。</font></p>
<!-- @@@parameterNames -->
<!-- $$$parameterTypes[overload1]$$$parameterTypesint -->
<h3 class="fn" id="parameterTypes"><a name="parameterTypes"></a><code>[pure virtual] </code><span class="type"><a href="../qtcore/qlist.html">QList</a></span>&lt;<span class="type"><a href="../qtcore/qbytearray.html">QByteArray</a></span>&gt; QDesignerMemberSheetExtension::<span class="name">parameterTypes</span>(<span class="type">int</span> <i>index</i>) const</h3>
<p><font style="vertical-align: inherit;">返回具有给定</font><i><font style="vertical-align: inherit;">index<span lang="zh-cn">（</span>索引</font></i><font style="vertical-align: inherit;"><span lang="zh-cn">）</span>的成员函数的参数类型，作为</font><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtcore/qbytearray.html"><font style="vertical-align: inherit;">QByteArray</font></a><font style="vertical-align: inherit;">列表。</font></p>
<p><b><font style="vertical-align: inherit;">请参考</font></b><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/qdesignermembersheetextension.html#indexOf"><font style="vertical-align: inherit;">indexOf</font></a><font style="vertical-align: inherit;"> ()和</font><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/qdesignermembersheetextension.html#parameterNames"><font style="vertical-align: inherit;">parameterNames</font></a><font style="vertical-align: inherit;"> ()。</font></p>
<!-- @@@parameterTypes -->
<!-- $$$setMemberGroup[overload1]$$$setMemberGroupintconstQString& -->
<h3 class="fn" id="setMemberGroup"><a name="setMemberGroup"></a><code>[pure virtual] </code><span class="type">void</span> QDesignerMemberSheetExtension::<span class="name">setMemberGroup</span>(<span class="type">int</span> <i>index</i>, const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &amp;<i>group</i>)</h3>
<p><font style="vertical-align: inherit;">将具有给定</font><i><font style="vertical-align: inherit;">index<span lang="zh-cn">（</span>索引<span lang="zh-cn">）</span></font></i><font style="vertical-align: inherit;">的成员函数的成员组设置为</font><i><font style="vertical-align: inherit;">group</font></i><font style="vertical-align: inherit;"><span lang="zh-cn">（组）</span>。</font></p>
<p><b><font style="vertical-align: inherit;">请参考</font></b><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/qdesignermembersheetextension.html#indexOf"><font style="vertical-align: inherit;">indexOf</font></a><font style="vertical-align: inherit;"> ()和</font><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/qdesignermembersheetextension.html#memberGroup"><font style="vertical-align: inherit;">memberGroup</font></a><font style="vertical-align: inherit;"> ()。</font></p>
<!-- @@@setMemberGroup -->
<!-- $$$setVisible[overload1]$$$setVisibleintbool -->
<h3 class="fn" id="setVisible"><a name="setVisible"></a><code>[pure virtual] </code><span class="type">void</span> QDesignerMemberSheetExtension::<span class="name">setVisible</span>(<span class="type">int</span> <i>index</i>, <span class="type">bool</span> <i>visible</i>)</h3>
<p><font style="vertical-align: inherit;">如果</font><i><font style="vertical-align: inherit;">visible</font></i><font style="vertical-align: inherit;">为true，则具有给定<i>index<span lang="zh-cn">（</span></i></font><i><font style="vertical-align: inherit;">索引<span lang="zh-cn">）</span></font></i><font style="vertical-align: inherit;">的成员函数在</font><i><font style="vertical-align: inherit;">Qt 设计师</font></i><font style="vertical-align: inherit;">的信号和槽编辑模式中可见；否则成员函数被隐藏。</font></p>
<p><b><font style="vertical-align: inherit;">请参考</font></b><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/qdesignermembersheetextension.html#indexOf"><font style="vertical-align: inherit;">indexOf</font></a><font style="vertical-align: inherit;"> ()和</font><a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtdesigner/qdesignermembersheetextension.html#isVisible"><font style="vertical-align: inherit;">isVisible</font></a><font style="vertical-align: inherit;"> ()。</font></p>
<!-- @@@setVisible -->
<!-- $$$signature[overload1]$$$signatureint -->
<h3 class="fn" id="signature"><a name="signature"></a><code>[pure virtual] </code><span class="type"><a href="../qtcore/qstring.html">QString</a></span> QDesignerMemberSheetExtension::<span class="name">signature</span>(<span class="type">int</span> <i>index</i>) const</h3>
<p><font style="vertical-align: inherit;">返回具有给定</font><i><font style="vertical-align: inherit;">index<span lang="zh-cn">（</span>索引<span lang="zh-cn">）</span></font></i><font style="vertical-align: inherit;">的成员函数的签名。</font></p>
<p><b>请参考 </b><a href="qdesignermembersheetextension.html#indexOf">indexOf</a>()<span lang="zh-cn">。</span></p>
<!-- @@@signature -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2019 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>
